package com.chinasoft.cr.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinasoft.cr.pojo.ReportData;
import com.chinasoft.cr.pojo.Reservations;
import com.chinasoft.cr.pojo.vo.DayCount;
import com.chinasoft.cr.pojo.vo.StatusCount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pp
 * @since 2025-01-18
 */
//public interface ReportDataMapper extends BaseMapper<ReportData> {
//    Page<ReportData> selectPageVo(@Param("page") Page<ReportData> page);
////    Page<ReportData> selectPageVo(@Param("page") Page<ReportData> page);
//}

public interface ReportDataMapper extends BaseMapper<ReportData> {
//    Page<ReportData> selectPageVo1 (@Param("page") Page<ReportData> page);
    Page<ReportData> selectPageVo(@Param("page") Page<ReportData> page,@Param("nickName") String nickName, @Param("venueName") String venueName);

    int getVenueNumber();
    int getUserNumber();
    int getReservationNumber();
    int getReservationSuccessNumber();
    List<DayCount> getEveryDayReservation();
    List<StatusCount> getStatusCount();
}

